#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
    int a, b, c;
    scanf("%d %d %d ", &a, &b, &c);
    float aver = 0;
    aver = (a + b + c) / 3;
    if (aver < 60)
        printf("YES");
    else
        printf("NO");


    return 0;
}